//
//  OPZJHighCarTableViewCell.m
//  NewWorld
//
//  Created by 曾静 on 16/4/28.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "OPZJHighCarTableViewCell.h"
#import "OPZJHighCar.h"
@interface OPZJHighCarTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *highCarImageView;
@property (weak, nonatomic) IBOutlet UILabel *desLab;

@end
@implementation OPZJHighCarTableViewCell
+(instancetype)highCar{
    return [[[NSBundle mainBundle] loadNibNamed:@"HighXCar" owner:nil options:nil]lastObject];
}
-(void)setHighCar:(OPZJHighCar *)highCar{
    _highCar = highCar;
    [self.highCarImageView sd_setImageWithURL:[NSURL URLWithString:self.highCar.url]];
    self.desLab.text = self.highCar.name;

}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
